<?php

class MsgCateModel  extends RelationModel {
	protected $_link=array(

		'Msg'=>array(
				'mapping_type'=>HAS_MANY,
				'foreign_key'=>'cate_id',

		),

	);

    function list_cate() {

    	   return $cate =M('MsgCate');
    }

}


?>